package com.axxy.decorate;

/**
 * @author 一缕茜阳
 * @date 2021/7/15
 */
public class Test {
    public static void main(String[] args) {
        Drink burdenPearlCoffee = new Coffee(1);
        burdenPearlCoffee = new Pearl(burdenPearlCoffee);
        burdenPearlCoffee = new Beads(burdenPearlCoffee);
        System.out.println(burdenPearlCoffee.getName());
        System.out.println(burdenPearlCoffee.cost());
    }
}
